Added view directory method