added popover to elements. small code changes.