sometimes eventhandler is called multiple times. maybe this will help??