fix page load

Sometimes the graph dimensions were not calculated correctly and the
"Total" checkbox was not selected, because we tried to do that
before DOM was updated
Add more configuration options - update_time and hide