working to fetch view on date change