Works now with multiple buttons in the same page