add event table and controller