finish popup drap method