Updated extend to apply plugins before render