sample main with dashboard updated
added todo for later optimization