Refactory some files and finished the first draft of page top nav bar