added exception handling on trying to create an instance of already made tab