Refactor of scan page view