update topic user has_and_belongs_to_many logic