Made max zoom, pitch & yaw dynamic and changed the checks to view3d