Implemented Partials

Changed the layout to use partials.