Refactored display type struct

visible property of lines is now saved in the settings file and
maintained between viewer uses.