Converted UI to angularjs