added id tags to html elements in templates