introduced query layout for main layout structure