saving layout config to localStorage