Added the template URL to the main file

Also some small UI refinements