close #46 Refactor main and options view.