Reorganized and made the GUI use card layout.