dialog for new tab and rename. Fixes #2431