Added a main layout.