Towards generalising comfirm box, postprocess delete function