Working on the main layout