Alter hash set to generate on user click rather than first load