update has_and_belongs_to_many association between users and events