fixed angular module error. Works now, except delete throws an error so fix that