move href assignment into main_queue