added proper dialogBox