added confirmation for select functionality