Check if we've selected a host before performing tab updates etc.

+ All statements now use the same host variable, to remove duplicate self.selected_host calls

Fixes #5