changed .click to .on