dropdown box handling added