add file and maintain view