get active view in a main thread

should fix #55