Made buttons work, refactored quit handling