set event mode
modify layout