added update button with redirect to main view