added add pet functionality