command, buttonlisteners, and graphics bugfixes