implemented buttons and titles of detailView