added observer pattern stuff to signindialog