categories button works properly now