fixing navbar behabiour