Removed the afterAction callback since its redundant with the beforeRender callback