Correct bug for alert, progress bar. Change prototype of function to add shortcut (see function comments). The change are backward compatible.