added layout and dynamic title to pages