Fix dashboard time align
Remove unused code