Cleanup of dialog layout and cancel behavior.