variation with angular ui. fixed #12