add GUI using Swing