tweaked drop downs to use query