tab callback code fixed
removed unwanted variable