Work on the Main Template