formatting results box