finish the dialog layer