Fixed error handeling
Better placement, confirmed tab.id