added fuction: display posts created through post_new on index