[GUI] How to create objects and how to get/set their attributes