added id to json builder (not standard in rails 4)