implements tabs and updated logic file