added jquery behaviors for dialogs and popovers