fix display of main graph list
fix the way category_id presence is checked