fixed template header and display of dynamic pages added security and admin section