Ensure viewport gets hidden when deactivated

Ensure viewport gets hidden when deactivated, fixes issue 74