add count to list controller, and fix some views