implement GUI displayCommand