Add detail page functionality