adding support for linking to results via location.hash