detect content when initialize