window dragging, controlls visiblation, refactoring&cleanup

Added window dragging by clicking view at any point
Changed the way controlls are visiblated
Minor cleanup and refactoring