Add quickclose and re-open functionality