update branch selection