getting view to work