Update layout
case of UI thread
case of background thread