Add detail view and make table clickable