added preliminary view code