Fixes bug in createProjectLink where taskView was improperly defined

Restores attribute 'levels-to-root' which is used in locating
taskView
Also removes incorrect static definition via parentElement