Changed the ui from canvas to JPanel so I can add buttons