Autolayout now works for main view