updated topbar sticky class with variable