removed set selected index. added afr to register