Added two visibility methods and fixed builtin hidden event.
Removed css declaration from bootstrap stylesheet to prevent errors.
Disable device back button when a popup dialog is visible.