correct placement of modal