add initWithDidDismissBlock method to header