updated tabs.getSelected to non-depricated tabs.query