Added edit and delete but there is a bug