cleanup of code used to create the simple language switcher in content single