Add an event when an object is selected in the browser