Edit main layout