added quit button and window resizing