Moved document and mail states to a simple class attribute.
Fixed cancel action in the remove confirmation view.