updating main toggle