changes on main.c

there are couples of error on main.c especially on the struct type for
passing data to button fire_event