bootstrap 3.3.1
adopt to new dialog in bootstrap