Changed .click() to .on()