simplified select element and button functionality