added random top link functionality