working with the new UI framework Foundation