Going to refactor viewer, move higher level stuff to previewer/editor