added hide option to viewer