added functionality to fix tooltips in modals