make it work for my situation with angular-bootstrap