Initial bugs from last minute change to idAttribute

Bugs introduced by last minute changes and use of idAttribute along with direct access of model attributes instead of using .get()