Store last used modes in local storage