mainly moved templates to specific URL and then made custom triggers for onEdit and onOpen