fix missing event listener in euclid example
added cancel button to exponentiation example