Changed binding of buttons because of jquery dialog to  bootstrap modal replacement