new and create methods for dogs controller