Reimplemented the pjax setup with event manager.