Fixes orientation change layout issues