Updates before adding modal