controller + localStorage