refacgtoring session routes page