make layout into a module