Sets up views