move view access to main thread