refactored the viewProperties to be used in viewProjects