updated post controller for tag implementation