changed way select box works