holoirc: cleanup code and add ability to save last selected tab