add entry edit functionality