Re organized the initComponents function.