ngStorage implemented to synchronise preview from local storage