Add before_render / after_render callbacks