added init value for toggle