refactoring completed FlotLineChart class and partly Dashboard class