refactored tag element controller, tomorrow refactor the views