created alert dialog factory