folding edit layout into main layout