Fixed a bug at Program View and improved the dayswitching