improve pan and zoom
improve pan and zoom