updated the schema and dashboard controller