added pre and post hooks for content_for head