Fix manipulating views on UI thread.