title functionality for show page