refactor and remove page view directory factory