updated to have bar stay on top