App working for delete, cb crashing, loads of extra code