added logic to handle hidding/displaying of pathology section in the view mode