adjust modal size and position when finished loading