fix the messy view in posts page