Add unwind to modal dialogue