Added code to render post list to the modal