rename function

renamed sameRoute to isSameRoute.