Created the commit as an external event and created a method to clear the options from  the select widget