Add margins and Format layout