removed NULL url bug when tab change is clicked