Added dialogPanel and edited DialogBox class