Refactor to move schedule logic into schedule model, also retain schedule date range when returning to schedule view