added local storage to forms