Making modal buttons actually work