remove layouts and m.layout