the realization of checkbox