implementing input screen builder angularJS controller