fixing modals for angular-ui update