equality check and static navbar