detect select status