remove layout from new and edit layout