Fixed bug wich lead to premature destruction when clicking the viewers close button. Bodymessages can now be closed. Some code style fixes.