Fix logic for initializing and rendering views