improve viewAll javadoc and add setter for viewName