Final-ish version of GUI (works except that main page shows first somehow)