Add beginAjax() and endAjax() new method called before & after an ajax action