although on second though I'm not sure if modal binds to all buttons or just those in the footer. But we can easily tweak this