fix the delete button cant disabled when fresh