Edit openResult method