added release and drag events