update viewer plugin direction depending on where it runs