Added pushState for register button
Restructured the page generation