use PRG(post redirect post) pattern to handle the post request to avoid duplicated post