added staticpages
update some behaviors