Codestyle fixes
Fixed bug in undefined callbacks for viewer