changed some templates with #main ID