Retain visibility of categories when page is refreshed