added small changes to add titlebar with close button