updated app so that the post redirects