updated edit views and code to match tutorial