Set data-active
Fixed history browsing