register main layout command