auto activate tab after close #268

When one tab is closed, another should be activated.

test1
test2
test3
test44
test55