Created a main layout