Working on geturl function