changed edit redirect to view