add auto save localstorage every 5 mins