refactored layouts, all layouts now extend one main layout.