updated for modal box