Working in layout for where clause