Fixed many bugs with the page controller and auto layout
Merge remote-tracking branch 'origin/master'