added 'close' button on window title bar