customize the layout of query view (support phone + tablet)