add params for choose right anchor for init/adding panel