Use onClicked instead of onPressed.
Add more debug output.
Fix debug output.