added option pauseOnLoading (to prevent pause\stop onBeforeAction)