defined selection mode in ui file