modified logic for blog page display