Print the chord box before flipping page

Fix issue #2.

Actually the events handling is still a bit of a mess, will give it a
better cleanup sometimes.