Fixing sorting of schedules
Started work on restrictions on periods
Adding restrictions to view