Fixed the extendedstate method, and changed preferred size of the frame.