Added code to main.html