style: minor change.
chore: add function to get object and object indexed by id.
fix: dashboard state after login.