fixed viewer to work with case insensitive extensions