Fixed the add and delete