added restore categories button and functionality