history show, issue state change + tabs and small refactoring