adding new post, adding js for modal