FIX: class name, behavior on multiple spaces in viewFunctions
FIX: behavior on multiple spaces in viewFunctions