Fixed all errors. The buttons now work (thanks Professor)