change projectdir to fit current view