Moved gui drawing to gui.dart, improved button functionality