changes for adding delete button and related changes.