cleaned up PanoMain