new update - edit/delete diary is added. Code optimization was applied.