created constructors depending on arguments for creating AlertDialog