use effect while pop controller