implement local storage service and hook up to controller