fixing bugs in new tab api