Code for dialogBox

Code for dialogBox