Sebastian's code for Day View feature