removed logging for modal