Function added to restore hash state by triggering clicks