Implement layer error and warning popover