broken code trying to get views to work

come back to this later