home page expand logic fixed