Layout before the view becomes visible. Use a push animation for showing if there is no right view controller