updated example app to use auto layout.