Removed debugger. Set index of tab panel