fix lost of config
added name attribute to dashboard directive
use localStorage to store dashboard