fixed delete button reclicking issue