update modal for not add footer when it is empty and add bootstrap popover and tooltip