added basic functionalty of tabs