Set showResult initial value to false