fixing toggle default state