Better solution for adding optional modal-footer buttons