improved toggle class with boolean flag to force set or unset class
improved toggle class with boolean flag to force set or unset class