complete the implementation of selectbox demo