make mouse events work and fix data input for radio buttons