working version with create, edit functionality