Refactoring schedule page