add event handlers -- need to make them work now