changed item condition to dropdown

and fixed a couple of errors