add title functionality for show page