Added ajax functionality to refresh by category