add header footer, change smaller margin