event handling seems to be working