bugfix for multiple buttons appearing on the page