pervasive nav bar, better calculations for removing value