Passing data to main layout.