added editor and preview to layout