added a template button and modal