add tags in subject form, refactoring