fixed several parts of the code to get conversion to work more smoothly between types and volume viewer more accessible