added clear event when selection changes from one to another obj