fix view rendering and add initial main_view code
update with main_view code