fixed toggle button behaviour