removed unused code
extracted dialog from app
introduced dialog component