Added Edit and delete functionality