Made consistent and simplified code to show search placeholders