implementation of angular-ui