improvements

improved next/previous in detail view.