make dirty on checked using buttons