# UI Update

**URL:** <https://forum.servoy.com/t/ui-update/16687>\
**Category:** Classic Servoy\
**Created:** [October 29, 2012, 6:34am UTC](https://forum.servoy.com/t/ui-update/16687 "2012-10-29T06:34:20Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![ashutoslenka426](https://avatars.discourse-cdn.com/v4/letter/a/cc9497/32.png) [@ashutoslenka426](https://forum.servoy.com/u/ashutoslenka426)\
**Post date:** [October 29, 2012, 6:34am UTC](https://forum.servoy.com/t/ui-update/16687/1 "2012-10-29T06:34:20Z")

</div>

Hi All,

Some code is executed on the drop down change . I am having a lot of functions executed one after another . I was seeing the results in the profiler of my local developer . The total time consumption was 670 msec . There are lots of code executed .But the majority of the time consumption was done by the UpdateUI method that is 570 . In this method elements are enabled and disabled depending on some conditions . Elements are also made visible and invisible depending on some conditions. Should these functionality consume lots of time ? . How can we optimize these codes ? .

Please share some suggestions on this.

Thanks,  
Ashutos

---

<div class="post-metadata">

**Author:** ![jcompagner](https://yyz2.discourse-cdn.com/flex010/user_avatar/forum.servoy.com/jcompagner/32/4889_2.png) [@jcompagner](https://forum.servoy.com/u/jcompagner)\
**Post date:** [November 6, 2012, 10:22pm UTC](https://forum.servoy.com/t/ui-update/16687/2 "2012-11-06T22:22:46Z")

</div>

are you talking about your own updateUI method or application.updateUI() ?  
try to avoid calling updateUI a lot, only when you really want to show progess
