Automatically update layout after orientation change