create condition to clear homepage grid items