Added "scan" page and refactored others.