add $view as parameter for getFileKey() call