A patient had a total hip replacement. what recommended leg position should the nurse ensure is maintained to prevent prosthesis dislocation?