Converted click events to use delegated events via jQuery .on() method