configuring main layout