Added selection functionality in search