added disabling and enabling of delete button