creates divs and proper layout