add staticpages control
finish static stuff