Wrapped UI in MainTabWindow in smart pointer