working default select functionality