updated controllers for diary, quiz