fixed the update bugs and got both buttons working