Custom View controller to dismiss view