finishing up diary functionality