fiddling with angular
almost completely refactored  UI to Angular JS