adding functions to create popover content area and footer