Modified resultController, which clears the previous result