dashboard: fixed bug when related model is null
dashboard: added html output