Encapsulating the sticky toolbar code