Fix potential crashes in Browser app.
Implemented preview mode.
Removed unnecessary whitespace.