adds layout and header