fixed main_view resizing issues