add next/previous/first/last buttons when viewing the detail view of a table