Add dashboard GUI,fix some services issues, improve js template file