global before, afterRender and afterAnimate hooks