add global view.
First runnable version, need test!!!