fix event layout