Refactored all views to share common layout.