add layouts and editlayout and rework the page logic in mod/item