multiple buttons on one page are now displayed correctly. fixes #4