Restrict before_rendered to cntrler/action render.