dropdown function finish