used history module to change the window.location.hash without flickering
trying to remove a smaller flicker