adding id attribute for each post