Implement select box behavior