Changed the way to generate the graphical interfaces in terms of Id