add route functionality to redirect pages