Add onPasue Method