If you define your event listener with .on instead of .click, jquery will keep track of changes so you don't have to call setup again to