Changed .click to .on.