refactoring of the tag specific controller