Add hook for renderContent
Fix priority of local<->global events