implemented the diary view