set active when open history

so we can easily choose items by array keys