changes made to main.html
refactored main.html by creating directives