add event mainactivity