updated click event and enter for math activity