autosave function and removefromLocal storage funciton remvoed