Attempting to instantiate view before I query it