Fixed window state and added a title.