currentCategory function