Added custom events to the search selector module, i think this design pattern should be general enough to work for all modules