add select box functionality