fixed bug with closing windows
added back the window's menu; added scrollbar to window content