static pages controller
lesson 3 ,dynamic title
removed duplicate code
removed duplicate code