Added events controller to dialogBox.