created the working template for the main page