Added mouse functionality for viewing the mesh