move layout logic from people to application.html