updated main_view to fix issue #334