Add a selectbox callback, and some other tweaks. See #259