Fix main.html from frontend bugs