change viewport and modify menubar