changed download to view code