udpates for onclick handler and timer