Sorting out method calling from url