adjust the code for xirang panel.