Move onFinishRender directive to its own folder