Dynamic layout for search page