sets up views