Cannot read property 'tabs' of undefined