Add activity template and handler