Working history stack

TODO: kom-dialog overlays the modal