added functionality for replying to post