added functionality to combo boxes