delete and edit functions added