android dialog will stop crashing the app