make joins table, fix clearing of select2