Trying to get the views to work correctly