save prefered work and play time to localstorage