changing static to pages