add update entry functionality