added restrictions to mouse click, and rotation more restrictions will come later