remove example viewFunction