start using respond_with to minimize code duplication