sub-categories now show selected state based on their data
changed the main view to first display all the portfolio items before editing them