added toggle listeners