Change logic for dorpdown to get data