Removed an unused variable
Moved the buttons from the title bar to a menu immeadiately below it.

Their are currently some issues with frame strata atm. You could push a button and drag the frame at the same time, so I split made sure they no longer overlapped.