renamed new to details, added edit controller