updated the new thread controller to redirect and add a flash when submitting a new thread