before services.js
detail still doesnt work;  need done/cancel button
refactored models into a service (see services.js) -> detail page now working