storing category in local storage