set up edit/activity button directives