Fix events

Replace dynamic .on(“click”) with static attr(“onclick”) so that it
fixes the target of the reset cartos and routes