add Autolayout to the homepage