changed layout of edit pattern view