Fixed autolayout constraints, and added a view controller