fixed new tab function