Added check for the "Result" button