Adds a function to handle drop down selects

Writing out the code to select an option in a drop down is pretty tedious, so I think this will make things a bit easier.