check if errors when reading view files in controller