adjusting template to allow for modal