moved msgbox to view