added better loading in categories