Added edit functionality

completed edit and delete functionality