added working logout toggle