Moved code from header to source
Added checkbox for hiding NNC geometry when no NNC data is available