Each tab is now aware in which state it is ie the component states are now set according to the visibility of each tab
Added separate hooks for create and destroy method calls