Added select functionality for detail view