Added hack to improve responsiveness of navbar buttons.