updated to use ember model