1. A method for validating and adapting a graphical user interface structure to a screen of a client device, the method comprising: receiving by the client device a software agent and a device dependent arrangement rule, the software agent being adapted for: analyzing received graphical user interface code for identifying graphical user interface elements to be rendered on said screen, determining a relative arrangement of said rendered graphical user interface elements to each other and relative to said screen, and if said relative arrangement is not compliant with said device dependent arrangement rule, determining a distance between graphical user interface elements of said relative arrangement and a relative arrangement of said graphical user interface elements in accordance with said device dependent arrangement rule, representing an improved arrangement, amending said graphical user interface code to re-arrange said graphical user interface elements towards said improved arrangement, and re-rendering said graphical user interface elements for said screen using said amended graphical user interface code.