Made calling api method on drag action