achieving dialog alert confirm under classic inheritance