added the functionality for viewing days