Page change

update page styles and add page change js function