rescue from routing error and redirect to main page