fixed and improved tab reloading