Moved the window size changed event to the states + added TextControl class (unfinished)