open post gets automatically closed when another post is clicked on