Added a scrollPane and adjusted the window size