Add page functions and change edior style