Cleanup html markup in main.html
Add preview mode
Add preview mode path