add RxJs and replace showDialog