Separate code for the content panel out into a separate class.