changes about toggle button functionality and gitignore for idea