Resolve main menu problem and add tab item creation.