set correct mode in dropdown