added viewPtr() and projectPtr()