add hideContent method