set up framework for home and new event pages