Changed UI to use the grid layout manager instead of pack()