add redirect function
avoid panic when routing is not found