modified to do redirecting user to new page