createNewTab method