added more functionality to the resourceful routing