added wrap toggle feature