introduce modalBox to save re-querying the DOM