refactor part 3: bids controller, views, partials