Custom toggle button implemented initially