added reroute to prevent repost data after refreshing