cleaned up calculating screen positions for menu buttons