added some of UI, movement handling of the window