added bootstrap functions to widget