fixed a bug where .result would still be visible after switching view. Changing view now empties .result just in case