fix code and loading graph
fix base.html