add delete button check on ui, auto hide-show message details