add general framework for front end pages