updated addtab modal

needs crucial fix in the addtab error handling