adding functionality to tabs and debugging changes