move leap initialization into initializeViewer