updated postSubmit.js posts.js router.js