adds and styles blocks for each section