base template + main page