fixed the issue where tab functionality wasn't workign properly, new pages were being opened on the recently created tabs, fixed it by removing the static references.