moved tag update logic from post controller to tag model