wrap generate_link to #generate_link_div and add removeClass('hidden') to show the link box