Adds a rowClick function to show details