Adjust modal transitions