added pre,post upgrade method
Change-Id: I2656b9b690a3b6f0aa3ab6506044701378319637