added localStorage to controller methods