Leaving search midway will now preserve filtered results, fixed issue with IE11 when all results filtered
Cleanup code