fix warning of searching path
init detail view
add content in detail view