addding add and delete funcionality