Improved category click event handler on home page