only watch viewFiles once