Added edit entry functionality