added rendering of boxes