added handler for direct access via location hash