Added .on and .off

To prevent duplicate click events, added .on and .off