fixed import errors in threads.view