Moved drag registration to public function