Question: **Problem resolvedby me**
resolve way :i user ko.js for check bining data in java to resolve my problem! thanks to all

I have this code to show my online users in my chat script (x7chat 3, you can [download it free](http://x7chat.com))

This code is in this file in the script:
x7chatDIR\templates\default\pages\chat.php

```
<div id="onlinelist" data-bind="foreach: active_room().users()">
    <div class="onlineuser" data-bind="click: $root.show_user_profile"><a href='#' data-bind="text: user_name"></a><br></div>
</div>

```

I want to check a var if that var was 'admin' show this div :

```
<div class="onlineuser" data-bind="click: $root.show_user_profile"><a href='#' data-bind="text: user_name"></a><br></div>

```

and else show this:

```
<div class="onlineuser2" data-bind="click: $root.show_user_profile"><a href='#' data-bind="text: user_name"></a><br></div>

```

In really I want show admin in div that it's class is "onlineuser2" I want show admin id in another color from users!

sorry for my english.... eng is not my native language!

Answer: 
try like this,in button action action method put this code

```
for(UIView *view in self.view.subviews){
        if([view isKindOfClass:[UIProgressView class]]))
            [view removeFromSuperView];
    }

```
Remove all progress bars from a given view: 

```
- (void) removeAllProgressBars:(UIView *)view {

    if([view isKindOfClass:[UIProgressView class]]))
       [view removeFromSuperView];
    else 
       for (UIView *subView in view.subviews) 
         [self removeAllProgressBars:view];
}

```

In some other method call: 

```
[self removeAllProgressBars:self.view];

```

Although I consider it bad coding style not to use curly breackets on 1-statement-bodies of for and if and else etc.