Refactor schedule view page.