fix not working buttons in modal