edit redirect to correct page