Router code not executing