add delay for alert dialog;