rewrote gui. adding missing buttons later