generate all links and reset form