allow custom main view. Closes #10