finishing routing to different pages