creating html template for main page, adding dynamic controller url to work with a context.