added first part of front-end template
added a switch for setting homepage