added base layout stuff for the main page