Added listener on sync event for the selectbox