update to pagoda
add view code