show alert dialog before clearing the cache