Reduced the number of server calls

The widget now possibly runs twice as fast, and also changed the
structure