chenge viewType to freemaker