Changing layout of main frame to borderlayout