Remove dispatch and render from defaction scope