adding redirect in "addNewPost" (actually to add new thread) to refresh
the page after submitting the form