returning url from native method