Add margin layout as template