setting navigation header as active or not