added optional classes for tooltip and popover