Created a function for new tabs