use inheritance for standard layout on all pages. add simple error handling.