Set page title based on content