Made function for changed text in modal window