modified to spefify the paths of controller lib and view lib explicitly.