Tablet orientation change fix