Added custom directive for activities