Add support for setting the modal widget footer as an array
Fix the collapse widget (thanks @zainiafzan)