Add options state, ability to resize window and save it