dropdown works locally but not when deployed