separate methods created for check-all or uncheck-all