Cleanup layouts and localization variables