adds functionality so that navbar is fixed