added function addTagToActivity