added update code to urls and view