added 'template' after permission to share