working select box with function calls