Adding x-cancel support. Cleaning up UI. Fixing root window warning