improved the gui functionality by using the gridbag manager