moving bs popover settings to the settings setting function and adding context