updated template to take a title