Re-added toggle function for add and settings