Added abstract lifecycle method, saving of instance state