drop down box is made, but unable to push variable from one function to another