fixed bugs
added edit, delete functionalities