Adding a main layout