only create a gui object if there are coordinates to draw