added default value for viewPath, made attribute required, should fix #19