removing unnecessary alert dialog