Rework main.html