ServiceUtils calls added and writeWidgetRelativePositioning implemented