Fixes for problems occuring on orientation change when the keyboard is up