global var controlling view patterns
improve list view
view pattern startup
whether the history path is available
save parent path into prev_stack
improve prev,next btn