common method for checkall event