extracted layout into heade,footer,menu