Revamp modal with handmade helper library; still need to bind close to click of background.