added edit and update features for pets