major changes

resize event handling, different opened keyboard states