Fix for #607 (/metrics/metrics called twice)

As described in #607, fixe for /metrics/metrics called twice by the controller. I added two variables to the scope to avoid FOUC issues while refreshing data from the server.