adding mouse movements for windows and panes