removing BOM, applying layouts, menu