get method name out of url