made fullscreen, added saving of state, made a bit more compact