fixed viewer updating