add titlebar with close button